﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RealtyManagementSystem.BLL;
using RealtyManagementSystem.DAL;

namespace RealtyManagementSystem.Web.Admin
{
    public partial class ManageUser : System.Web.UI.Page
    {
        protected void Page_Load ( object sender, EventArgs e )
        {

        }

        public string GetRolesNameList (IEnumerable<aspnet_Roles> roles)
        {
            string nameList = string.Empty;
            foreach (aspnet_Roles role in roles)
            {
                nameList += (role.RoleName + ", ");
            }
           return nameList.Remove(nameList.Length - 2, 2);
        }
    }//end class
}